'use strict';

const Controller = require('../core/base_controller');

class LoggerController extends Controller {
  async index() {
    const { ctx, ctx: { service, customBody }, app: { mysql } } = this;

    ctx.logger.error(customBody);

    this.success({
      code: 200,
      msg: "日志已添加"
    })

  }
}

module.exports = LoggerController;
